package com.ego.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ego.product.dao.SkuImageDao;
import com.ego.product.po.SkuImage;
import com.ego.product.service.SkuImageService;

import java.util.List;

/**
 * @program: ego
 * @description sku图片对应实现类
 * @author KamTang
 * @date 2022-11-13 12:56:14
 */
@Service("skuImagesService")
public class SkuImageServiceImpl extends ServiceImpl<SkuImageDao, SkuImage> implements SkuImageService {
    @Override
    public List<SkuImage> gets(Long skuId) {
        return this.baseMapper.selectList(new QueryWrapper<SkuImage>().eq("sku_id", skuId));
    }
}
